import React from 'react';  // 引入react核心库
import ReactDOM from 'react-dom/client'; // 引入ReactDOM
import App from './App'; // 引入App组件
import { BrowserRouter } from 'react-router-dom'

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
    <BrowserRouter>
        <App />
    </BrowserRouter>
);

export default root

//   <React.StrictMode> 严格模式导致setState/useState被执行了两次